package com.zryc.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel("商品订单实体")
@TableName("t_order")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {

    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Long oid;

    @ApiModelProperty(value = "用户id")
    private Integer uid;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "商品id")
    private Integer pid;                //商品id

    @ApiModelProperty(value = "商品名称")
    private String pname;               //商品名称

    @ApiModelProperty(value = "商品单价")
    private Double pprice;              //商品单价

    @ApiModelProperty(value = "购买数量")
    private Integer number;             //购买数量
}
